//
//  ServiceViewController.m
//  Contractor
//
//  Created by 金鑫 on 16/5/4.
//  Copyright © 2016年 star j. All rights reserved.
//

#import "ServiceViewController.h"
#import "CONST.h"

@interface ServiceViewController ()

@end

@implementation ServiceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    //文本
    UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, __kScreenWidth, __kScreenHeight)] ;
    NSString *textStr = [NSString stringWithContentsOfFile:[[NSBundle mainBundle]pathForResource:@"建配牛服务协议" ofType:@"txt"] encoding:NSUTF8StringEncoding error:nil] ;
    textView.text = textStr ;
    textView.font = [UIFont fontWithName:@"AvenirLTStd-Light" size:16.0f] ;
    textView.showsVerticalScrollIndicator = NO ;
    textView.editable = NO ;
    textView.selectable = NO ;
//    [textView addSubview:title] ;
    [self.view addSubview:textView] ;
}

- (void)viewWillAppear:(BOOL)animated
{
    self.navigationController.navigationBarHidden = NO ;
    self.navigationItem.title = @"服务协议" ;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
